package com.imooc.order.enums;

import lombok.Getter;

/**
 * @author wy
 * @version 1.0
 * @date 2020/3/5 11:20
 * @description
 **/
@Getter
public enum ResultEnum {
    PARAM_ERROR(1, "参数错误"),
    CART_EMPTY(2, "购物车为空")

    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
